<script>
	import wx_event from '/common/utils/wx_event.js'
	export default {
		onLaunch: function() {
			uni.getStorage({
				key: 'isLogin',
				success: function (res) {
					uni.switchTab({
					    url: '/pages/tabbar/index'
					});
				}
			});
			//获取是否新
			// #ifdef MP
			wx_event.updateApp()
			wx_event.showShareMenu()
			// #endif
		},
		onShow: function() {
			// uni.$store('data').userInfo.token &&
			// 	this.updateUserInfo()
		},
		onHide: function() {
			console.log('App Hide')
		},
		onPageNotFound: function() {
			console.log('onPageNotFound')
		},
		methods: {
		
		}
	}
</script>

<style lang="scss">
	@import "@/common/base/index.scss";
	@import "@/uni_modules/uview-plus/index.scss";
</style>